| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Static Public Member Functions | List of all members
nkAstraeus::nkExportWrap::JsonExporterWrapper Class Referencefinal

Wraps a nkExport::JsonExporter and offer functions for use in scripting. More...

## Static Public Member Functions
static void | updateEnvironment (nkScripts::Environment *env)
static nkScripts::OutputValue | exportTreeIntoString (const nkScripts::DataStack &stack)
static nkScripts::OutputValue | importIntoTree (const nkScripts::DataStack &stack)

## Detailed Description

Wraps a nkExport::JsonExporter and offer functions for use in scripting.

## Member Function Documentation

## ◆ updateEnvironment()

static void nkAstraeus::nkExportWrap::JsonExporterWrapper::updateEnvironment | ( | nkScripts::Environment * | env | ) |
| static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters

  env | The environment to set up.

## ◆ exportTreeIntoString()

static nkScripts::OutputValue nkAstraeus::nkExportWrap::JsonExporterWrapper::exportTreeIntoString | ( | const nkScripts::DataStack & | stack | ) |
| static

Wrapper function for nkExport::JsonExporter::exportTreeIntoString.

local str = nkExport.JsonExporter.exportTreeIntoString(tree) ;

Parameters

  stack | The parameter stack.

Returns
  The output value, as a string.

## ◆ importIntoTree()

static nkScripts::OutputValue nkAstraeus::nkExportWrap::JsonExporterWrapper::importIntoTree | ( | const nkScripts::DataStack & | stack | ) |
| static

Wrapper function for nkExport::JsonExporter::importIntoTree.

local str = nkExport.JsonExporter.importIntoTree("{'Hey' : 0}") ;

Parameters

  stack | The parameter stack.

Returns
  The output value, as a string.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsAstraeus/Scripts/nkExportWrap/Exporters/JsonExporterWrapper.h